package com.heima.apis.wemedia;

import com.heima.model.common.dtos.ResponseResult;
import com.heima.model.wemedia.dtos.WmMaterialDto;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.multipart.MultipartFile;

public interface WmMaterialControllerApi {


    //文件上传
     //文件对象

    public ResponseResult uploadPicture(MultipartFile multipartFile);

    //查询列表

    public ResponseResult findList(@RequestBody WmMaterialDto dto);

    //删除图片

    ResponseResult delPicture(Integer id);

    //取消收藏

    @ApiOperation("取消收藏")
    ResponseResult cancelCollectionMaterial(Integer id);

    //收藏图片

    @ApiOperation("收藏图片")
    ResponseResult collectionMaterial(Integer id);
}
